<?php

/**
 * uniBoard Admin dashboard template
 *
 * Light and fast forum solution for web 2.0-like communities.
 *
 * @package		uniBoard
 * @author		Rafał Pitoń
 * @license		http://www.gnu.org/licenses/gpl-3.0.html
 * @since		Version 0.1
 * 
 * ------------------------------------------------------------------------
 * 
 * $Date: 2010-08-22 11:17:15 +0000 (Sun, 22 Aug 2010) $
 * $Revision: 44 $
 * $Author: rafio.xudb@gmail.com $
 */

// ------------------------------------------------------------------------

class tpl_admin_index extends class_templates_abstract{
	
	/**
	 * Main class pointer
	 *
	 * @var object
	 */
	
	private $appCore		= NULL;

	// ------------------------------------------------------------------------

	/**
	 * Creates ACP display class
	 *
	 */
	
	function __construct( $appCore){
		
		// Store appCore pointer
		$this -> appCore = $appCore;
		
	}
	
	// ------------------------------------------------------------------------

	/**
	 * Draws two-column Row
	 *
	 * @return string
	 */
	
	function tpl_index_half_row( $left_side, $right_side){
		
		return '<div class="fixed_height">
	<div class="left_float width_half">
		' . $left_side . '
	</div>
	<div class="right_float width_half">
		' . $right_side . '
	</div>
</div>';
		
	}
	
	// ------------------------------------------------------------------------

	/**
	 * Draws admin notepad text-area
	 *
	 * @return string
	 */
	
	function tpl_notepad( $contents = ''){
		
		return '<textarea id="admin_notepad" name="admin_notepad" class="form_text_area form_admin_notepad">' . htmlspecialchars( $contents) . '</textarea>';
		
	}
}